import request from '@/utils/request'

// 发票设置-列表
export const billInvoiceList = data =>
  request({
    url: `/bill/invoice/index`,
    method: 'post',
    data,
  })

// 发票设置-详情
export const billInvoiceDetail = params =>
  request({
    url: `/bill/invoice/detail`,
    method: 'get',
    params,
  })

// 发票设置-创建
export const createBillInvoice = data =>
  request({
    url: `/bill/invoice/create`,
    method: 'post',
    data,
  })

// 发票设置-编辑
export const updateBillInvoice = data =>
  request({
    url: `/bill/invoice/update`,
    method: 'post',
    data,
  })

// 发票设置-删除
export const deleteBillInvoice = data =>
  request({
    url: `/bill/invoice/delete`,
    method: 'post',
    data,
  })

// 发票设置-启用禁用
export const statusBillInvoice = data =>
  request({
    url: `/bill/invoice/status`,
    method: 'post',
    data,
  })

export const getBillOptions = params =>
  request({
    url: `/bill/invoice-type/get-options`,
    method: 'get',
    params,
  })
